package com.xlabs.client;

import javax.jdo.annotations.*;

/**
 * Reply class.
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Reply {
    /**
     * Primary key.
     */
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    @Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true")
    private String key;

    /**
     * The text comment.
     */
    @Persistent
    private String comment;

    @Persistent(mappedBy = "reply")
    private CommentDO question;

    /**
     * Gets the key.
     *
     * @return id.
     */
    public String getKey() {
        return key;
    }

    /**
     * Sets the key.
     *
     * @param key key.
     */
    public void setKey(String key) {
        this.key = key;
    }

    /**
     * Gets comment.
     *
     * @return comment.
     */
    public String getComment() {
        return comment;
    }

    /**
     * Sets Comment.
     *
     * @param comment The text comment.
     */
    public void setComment(String comment) {
        this.comment = comment;
    }

    public CommentDO getQuestion() {
        return question;
    }

    public void setQuestion(CommentDO question) {
        this.question = question;
    }
}
